<?php
/**
 * Author:xsc
 * Time:2023/9/4 17:51
 */

namespace App\Params\Common;

use App\Params\BaseParam;

class CouponStockParam extends BaseParam
{

    public $mid;

    public $sku_code;

    /**
     * 字段校验规则
     * @return string[]
     * Author:xsc
     * Time:2023/9/4 17:54
     */
    public function rules()
    {
        return [
            'mid'      => 'required|string',
            'sku_code' => 'required|string',
        ];
    }

    /**
     * 参数错误提示
     * @return string[]
     * Author:xsc
     * Time:2023/9/4 17:54
     */
    public function message()
    {
        return [
            "mid.required"      => "商户号不能为空",
            "sku_code.required" => "货品编码不能为空",
        ];
    }

    public function getMid()
    {
        return $this->mid;
    }

    public function getSkuCode()
    {
        return $this->sku_code;
    }
}
